package com.twu.solo;

import java.io.PrintStream;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: thoughtworker
 * Date: 10/10/13
 * Time: 3:32 PM
 * To change this template use File | Settings | File Templates.
 */
public class Menu {
    private PrintStream printStream;
    private List<MenuOption> menuOptions;

    public Menu(PrintStream printStream, List<MenuOption> menuOptions) {
        this.printStream = printStream;
        this.menuOptions = menuOptions;
    }

    public void printMenuOptions() {
        String menuOptionsString = "";
        for(MenuOption menuOption: menuOptions) {
            menuOptionsString += "| " + menuOption.getOptionName()+ " (" +menuOption.getOptionId() + ") ";
        }
        printStream.println(menuOptionsString);
    }
}
